package com.zjp.factory;

import com.zjp.factory.framework.Factory;
import com.zjp.factory.framework.Product;
import com.zjp.factory.idcard.IdCardFactory;

public class Main {


    public static void main(String[] args) {


        Factory factory = new IdCardFactory();


        Product card1 = factory.create("小明");
        Product card2 = factory.create("小红");
        Product card3 = factory.create("小刚");

        card1.use();
        card2.use();
        card3.use();

        System.out.println("-----");
    }

}
